package com.qf.service.Impl;

import com.qf.entity.Provider;
import com.qf.mapper.ProviderMapper;
import com.qf.service.ProviderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * --- 天道酬勤 ---
 *
 * @author Hulboy
 * @date 2024/7/26
 * @desc --- 代码敲烂 月薪过万 ---
 */

@Service
public class ProviderServiceImpl implements ProviderService {
    @Autowired
    private ProviderMapper providerMapper;

    @Override
    public List<Provider> findAll(HashMap<String, String> map) {
        return providerMapper.findAll(map);
    }

    @Override
    public boolean delBatch(List<Integer> ids) {
        return providerMapper.delBatch(ids);
    }

    @Override
    public boolean addProvider(Provider provider) {
        return providerMapper.addProvider(provider);
    }


    @Override
    public boolean edit(Provider provider) {
        return providerMapper.edit(provider);
    }

    @Override
    public boolean deleteById(int id) {
        return providerMapper.deleteById(id);
    }
}
